<?php
/* @var $this NgachController */
/* @var $model Ngach */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ngach-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Điền đầy đủ vào vị trí có dấu <span class="required">*</span>.</p>

	<?php echo $form->errorSummary($model); ?>
	<table>
	<div class="row">
	<tr>
		<td style="width:20%"><?php echo $form->labelEx($model,'mangach'); ?></td>
		<td><?php echo $form->textField($model,'mangach',array('size'=>60,'maxlength'=>128)); ?></td>
		<td><?php echo $form->error($model,'mangach'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'tenngach'); ?></td>
		<td><?php echo $form->textField($model,'tenngach'); ?></td>
		<td><?php echo $form->error($model,'tenngach'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'hesongach'); ?></td>
		<td><?php echo $form->textField($model,'hesongach'); ?></td>
		<td><?php echo $form->error($model,'hesongach'); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->labelEx($model,'ghichu'); ?></td>
		<td><?php echo $form->textField($model,'ghichu'); ?></td>
		<td><?php echo $form->error($model,'ghichu'); ?></td>
	</tr>
	</div>

	</table>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo mới' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->